package cn.iocoder.yudao.module.fengdong.smartelderly.convert.buyrecord;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.iocoder.yudao.module.fengdong.smartelderly.controller.admin.buyrecord.vo.*;
import cn.iocoder.yudao.module.fengdong.smartelderly.dal.dataobject.buyrecord.BuyRecordDO;

/**
 * 购买记录 Convert
 *
 * @author 沣东养老院管理员
 */
@Mapper
public interface BuyRecordConvert {

    BuyRecordConvert INSTANCE = Mappers.getMapper(BuyRecordConvert.class);

    BuyRecordDO convert(BuyRecordCreateReqVO bean);

    BuyRecordDO convert(BuyRecordUpdateReqVO bean);

    BuyRecordRespVO convert(BuyRecordDO bean);

    List<BuyRecordRespVO> convertList(List<BuyRecordDO> list);

    PageResult<BuyRecordRespVO> convertPage(PageResult<BuyRecordDO> page);

    List<BuyRecordExcelVO> convertList02(List<BuyRecordDO> list);

}
